<?php

	$router = Zend_Controller_Front::getInstance()->getRouter();

	$router->addRoute('user_entry',
		new Zend_Controller_Router_Route('user/:entity_idname/:page_name/:page_param1/:page_param2/*',
			array('module'=>'dashboard', 'controller'=>'index', 'action'=>'index', 'page_name'=>'index',
				'page_param1'=>'', 'page_param2'=>'', 'entity_class'=>'user'))
	);

	$router->addRoute('user_friend_request',
		new Zend_Controller_Router_Route('user/:entity_idname/friendadd/*',
			array('module'=>'user', 'controller'=>'friend', 'action'=>'add', 'entity_class'=>'user'))
	);
	$router->addRoute('user_friend_remove',
		new Zend_Controller_Router_Route('user/:entity_idname/friendremove/*',
			array('module'=>'user', 'controller'=>'friend', 'action'=>'remove', 'entity_class'=>'user'))
	);

	$router->addRoute('user_list',
		new Zend_Controller_Router_Route('users/*',
			array('module'=>'user', 'controller'=>'index', 'action'=>'list'))
	);



	Euso_ObjectClass::register('account', 'User_Model_User', NULL, 'user');
	Euso_ObjectClass::register('user', 'User_Model_User', NULL, 'user');
//	die(get_include_path());
//	Account_Model_Account::setInstanceClassName('User_Model_User');
